package jy.hibernate.beans;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Store_product entity
 * @author tingzi
 *
 */
public class Store_product implements java.io.Serializable{
	private static final long serialVersionUID = 6094958533206109209L;
	private Integer stor_pro_id;//����id
	private Product_information  product;//��Ʒ����
	private Region_info region;//�����λ
	private String shlef_ids="";
	private Integer pro_num=0;//��Ʒ��Ŀ
	private Date productor_date=new Date("1970-00-00");//�������
	private Date validity_date=new Date("1870-00-00");//��Ч����
    private Client client;//����ͻ�����

	/** full constructor */
    public  Store_product(Product_information  product,Region_info region,
    		Integer pro_num,Date productor_date,Date validity_date, Client client){
    	this.product=product;
    	this.region=region;
    	this.pro_num=pro_num;
    	this.productor_date=productor_date;
    	this.validity_date=validity_date;
    	this.client=client;
    	
    	
    }

	public Integer getStor_pro_id() {
		return stor_pro_id;
	}

	public void setStor_pro_id(Integer stor_pro_id) {
		this.stor_pro_id = stor_pro_id;
	}

	public Product_information getProduct() {
		return product;
	}

	public void setProduct(Product_information product) {
		this.product = product;
	}

	public Region_info getRegion() {
		return region;
	}

	public void setRegion(Region_info region) {
		this.region = region;
	}

	public String getShlef_ids() {
		return shlef_ids;
	}

	public void setShlef_ids(String shlef_ids) {
		this.shlef_ids = shlef_ids;
	}

	public Integer getPro_num() {
		return pro_num;
	}

	public void setPro_num(Integer pro_num) {
		this.pro_num = pro_num;
	}

	public Date getProductor_date() {
		return productor_date;
	}

	public void setProductor_date(Date productor_date) {
		this.productor_date = productor_date;
	}

	public Date getValidity_date() {
		return validity_date;
	}

	public void setValidity_date(Date validity_date) {
		this.validity_date = validity_date;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}
	public String toString(){
		return "product_name:"+product.getPro_name()+"/tregion_name:"+region.getRegion_name()
		       +"/tpro_num:"+pro_num+"/tproductor_date:"+productor_date+"/tvalidity_date:"+
		       validity_date+"client_name:"+client.getCompany();
	}
}
